/*
 * XML Type:  StockInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StockInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StockInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StockInfoImpl extends net.ofx.types.x2003.x04.impl.AbstractSecurityInfoImpl implements net.ofx.types.x2003.x04.StockInfo
{
    
    public StockInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName STOCKTYPE$0 = 
        new javax.xml.namespace.QName("", "STOCKTYPE");
    private static final javax.xml.namespace.QName YIELD$2 = 
        new javax.xml.namespace.QName("", "YIELD");
    private static final javax.xml.namespace.QName DTYIELDASOF$4 = 
        new javax.xml.namespace.QName("", "DTYIELDASOF");
    private static final javax.xml.namespace.QName ASSETCLASS$6 = 
        new javax.xml.namespace.QName("", "ASSETCLASS");
    private static final javax.xml.namespace.QName FIASSETCLASS$8 = 
        new javax.xml.namespace.QName("", "FIASSETCLASS");
    
    
    /**
     * Gets the "STOCKTYPE" element
     */
    public net.ofx.types.x2003.x04.StockEnum.Enum getSTOCKTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STOCKTYPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.StockEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "STOCKTYPE" element
     */
    public net.ofx.types.x2003.x04.StockEnum xgetSTOCKTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StockEnum target = null;
            target = (net.ofx.types.x2003.x04.StockEnum)get_store().find_element_user(STOCKTYPE$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "STOCKTYPE" element
     */
    public boolean isSetSTOCKTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STOCKTYPE$0) != 0;
        }
    }
    
    /**
     * Sets the "STOCKTYPE" element
     */
    public void setSTOCKTYPE(net.ofx.types.x2003.x04.StockEnum.Enum stocktype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STOCKTYPE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STOCKTYPE$0);
            }
            target.setEnumValue(stocktype);
        }
    }
    
    /**
     * Sets (as xml) the "STOCKTYPE" element
     */
    public void xsetSTOCKTYPE(net.ofx.types.x2003.x04.StockEnum stocktype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StockEnum target = null;
            target = (net.ofx.types.x2003.x04.StockEnum)get_store().find_element_user(STOCKTYPE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StockEnum)get_store().add_element_user(STOCKTYPE$0);
            }
            target.set(stocktype);
        }
    }
    
    /**
     * Unsets the "STOCKTYPE" element
     */
    public void unsetSTOCKTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STOCKTYPE$0, 0);
        }
    }
    
    /**
     * Gets the "YIELD" element
     */
    public java.lang.String getYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "YIELD" element
     */
    public net.ofx.types.x2003.x04.RateType xgetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(YIELD$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "YIELD" element
     */
    public boolean isSetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(YIELD$2) != 0;
        }
    }
    
    /**
     * Sets the "YIELD" element
     */
    public void setYIELD(java.lang.String yield)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(YIELD$2);
            }
            target.setStringValue(yield);
        }
    }
    
    /**
     * Sets (as xml) the "YIELD" element
     */
    public void xsetYIELD(net.ofx.types.x2003.x04.RateType yield)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(YIELD$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(YIELD$2);
            }
            target.set(yield);
        }
    }
    
    /**
     * Unsets the "YIELD" element
     */
    public void unsetYIELD()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(YIELD$2, 0);
        }
    }
    
    /**
     * Gets the "DTYIELDASOF" element
     */
    public java.lang.String getDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTYIELDASOF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTYIELDASOF$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTYIELDASOF" element
     */
    public boolean isSetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTYIELDASOF$4) != 0;
        }
    }
    
    /**
     * Sets the "DTYIELDASOF" element
     */
    public void setDTYIELDASOF(java.lang.String dtyieldasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTYIELDASOF$4);
            }
            target.setStringValue(dtyieldasof);
        }
    }
    
    /**
     * Sets (as xml) the "DTYIELDASOF" element
     */
    public void xsetDTYIELDASOF(net.ofx.types.x2003.x04.DateTimeType dtyieldasof)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTYIELDASOF$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTYIELDASOF$4);
            }
            target.set(dtyieldasof);
        }
    }
    
    /**
     * Unsets the "DTYIELDASOF" element
     */
    public void unsetDTYIELDASOF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTYIELDASOF$4, 0);
        }
    }
    
    /**
     * Gets the "ASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.AssetClassEnum.Enum getASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSETCLASS$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.AssetClassEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "ASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.AssetClassEnum xgetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AssetClassEnum target = null;
            target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().find_element_user(ASSETCLASS$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "ASSETCLASS" element
     */
    public boolean isSetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ASSETCLASS$6) != 0;
        }
    }
    
    /**
     * Sets the "ASSETCLASS" element
     */
    public void setASSETCLASS(net.ofx.types.x2003.x04.AssetClassEnum.Enum assetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSETCLASS$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSETCLASS$6);
            }
            target.setEnumValue(assetclass);
        }
    }
    
    /**
     * Sets (as xml) the "ASSETCLASS" element
     */
    public void xsetASSETCLASS(net.ofx.types.x2003.x04.AssetClassEnum assetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AssetClassEnum target = null;
            target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().find_element_user(ASSETCLASS$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().add_element_user(ASSETCLASS$6);
            }
            target.set(assetclass);
        }
    }
    
    /**
     * Unsets the "ASSETCLASS" element
     */
    public void unsetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ASSETCLASS$6, 0);
        }
    }
    
    /**
     * Gets the "FIASSETCLASS" element
     */
    public java.lang.String getFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIASSETCLASS$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FIASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(FIASSETCLASS$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "FIASSETCLASS" element
     */
    public boolean isSetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIASSETCLASS$8) != 0;
        }
    }
    
    /**
     * Sets the "FIASSETCLASS" element
     */
    public void setFIASSETCLASS(java.lang.String fiassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIASSETCLASS$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIASSETCLASS$8);
            }
            target.setStringValue(fiassetclass);
        }
    }
    
    /**
     * Sets (as xml) the "FIASSETCLASS" element
     */
    public void xsetFIASSETCLASS(net.ofx.types.x2003.x04.GenericNameType fiassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(FIASSETCLASS$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(FIASSETCLASS$8);
            }
            target.set(fiassetclass);
        }
    }
    
    /**
     * Unsets the "FIASSETCLASS" element
     */
    public void unsetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIASSETCLASS$8, 0);
        }
    }
}
